# define _CRT_SECURE_NO_WARNINGS 1
# include<stdio.h>

int Strlen(char* arr)
{
	int count = 0;
	while (*(arr) != '\0')
	{
		arr++;
		count++;
	}

	return count;
}
void reverse_string(char* str)
{
	int st = Strlen(str);
	char ret = 0;
	ret = *(str);
	*(str) = *(str + st - 1);
	*(str + st - 1) = '\0';
	

	if(Strlen(str + 1) >= 2)
	{
		reverse_string(str + 1);
	}

     *(str + st - 1) = ret;
}
int main()
{
	char arr[] = "abcdefj";
	
	reverse_string(arr);
	printf("%s", arr);


	return 0;
}